<%@ page language="java" import="java.util.*,dao.*,entity.*,utils.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page import="java.io.File"%>
<%@page import="org.apache.commons.fileupload.FileItem"%>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
<%@page import="org.apache.commons.fileupload.FileItemFactory"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'news_control.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <c:if test="${not empty param.tname }">
  <form action="editTopicServlet" method="get">
    	
    	<input  value='${param.tname }' name="tname"/>
    	<c:remove var="tname"/>
    	<input  value='${param.tid }' name="tid" type="hidden"/>
  
    <input type="submit" value="修改"><input type="reset" value="重置">
  
  </c:if>
  	<c:if test="${empty param.tname }">
  	<form action="addTopicServlet" method="get">
  	<input  value='' name="tname"/>
  	<input type="submit" value="提交"><input type="reset" value="重置">
  	</c:if>
  </form>
  </body>
</html>
